<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">
<head>
<title>Hello World</title>
</head>
<body>
<ui:composition template="/template.xhtml">
	<ui:define name="navigation">
		<ui:include src="navigation.xhtml" />
	</ui:define>

	<ui:define name="heading">
		<h:outputText value="Reports" />
	</ui:define>

	
	<ui:define name="body">
		<h:form id="form">
			<h:messages id="messages" errorClass="error" infoClass="success" />
			<h:commandLink value="Generate Report Command" actionListener="#{reportBean.executeReportChain}" />
			<h:selectManyListbox value="#{reportBean.commandsToExecute}">
				<f:selectItems value="#{reportBean.commands}" />
			</h:selectManyListbox>
			<br />
			
			<h:panelGroup>
				<h:outputLabel value="StartDate: (MM/dd/yyyy) " />
				<h:inputText value="#{reportBean.startDate}">
					<f:convertDateTime pattern="MM/dd/yyyy" timeZone="America/Indianapolis" />
				</h:inputText>
			</h:panelGroup>
			
			<h:panelGroup>
				<h:outputLabel value="EndDate: (MM/dd/yyyy) " />
				<h:inputText value="#{reportBean.endDate}">
					<f:convertDateTime pattern="MM/dd/yyyy" timeZone="America/Indianapolis" />
				</h:inputText>
			</h:panelGroup>
			<br />
			
			<ol>
				<li>
					<h:commandLink value="View Bse Alert" actionListener="#{reportBean.getBseAlertReport}" />
					<h:selectOneListbox value="#{reportBean.filterBseEventType}" size="1">
						<f:selectItems value="#{alertBean.eventTypes}" />
					</h:selectOneListbox>
					<h:commandLink value="Filter" actionListener="#{reportBean.filterBseAlertReport}" />
				</li>
				<li>
					<h:commandLink value="View Nyse Alert" actionListener="#{reportBean.getNyseAlertReport}" />
					&nbsp;
					<h:selectOneListbox value="#{reportBean.filterNyseEventType}" size="1">
						<f:selectItems value="#{alertBean.eventTypes}" />
					</h:selectOneListbox>
					<h:commandLink value="Filter" actionListener="#{reportBean.filterNyseAlertReport}" />
				</li>
				<li><h:commandLink value="View Bse" actionListener="#{reportBean.getBseReport}" /></li>
				<li><h:commandLink value="View Nyse" actionListener="#{reportBean.getNyseReport}" /></li>
				<li><h:commandLink value="View NyseNPercentCorrectionInMMonths" actionListener="#{reportBean.getNyseNPercentCorrectionInMMonthsReport}" /></li>
				<li><h:commandLink value="View NyseNPercentUpFromBottom" actionListener="#{reportBean.getNyseNPercentUpFromBottomReport}" /></li>
				<li><h:commandLink value="View NyseNPercentUpFromBottomSimulation" actionListener="#{reportBean.getNyseNPercentUpFromBottomSimulationReport}" /></li>
				<li><h:commandLink value="View NyseNPercentUpFromBottomScanningSimulation" actionListener="#{reportBean.getNyseNPercentUpFromBottomScanningSimulationReport}" /></li>
				<li><h:commandLink value="View NyseBreakingHighsEachTime" actionListener="#{reportBean.getNyseBreakingHighsEachTimeReport}" /></li>
				<li><h:commandLink value="View NyseTxReport" actionListener="#{reportBean.getNyseTxReport}" /></li>
				<li><h:commandLink value="View NyseTrailingSet" actionListener="#{reportBean.getNyseTrailingSetReport}" /></li>
				<li><h:commandLink value="View NyseTrailingSetSimulationWithPastSituation" actionListener="#{reportBean.getNyseTrailingSetSimulationWithPastSituationReport}" /></li>
				<li><h:commandLink value="View BseTrailingSetSimulationWithPastSituation" actionListener="#{reportBean.getBseTrailingSetSimulationWithPastSituationReport}" /></li>
				<li><h:commandLink value="View BseBounceFrom52WkReport" actionListener="#{reportBean.getBseBounceFrom52WkReport}" /></li>
			</ol>
			<br />
			<h:outputText value="#{reportBean.content}" escape="false" />
		</h:form>
	</ui:define>
</ui:composition>
</body>
</html>
